﻿<UserControl x:Class="ModernUILogViewer.Pages.ExternalEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             xmlns:content="clr-namespace:ModernUILogViewer.Content"
             xmlns:view="clr-namespace:ModernUILogViewer.View"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <DockPanel>
            <Grid DockPanel.Dock="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right">
                    <mui:ModernButton 
                        ToolTip="Help online"
                        Command="{x:Static view:ViewCommands.OpenUrl}" 
                        CommandParameter="{StaticResource extprogramdocurl}"
                        EllipseDiameter="24" IconWidth="16" IconHeight="16"                           
                        VerticalAlignment="Top"
                        Margin="{StaticResource DefaultRightMargin}"
                        IconData="{StaticResource helpPathData}"              
                    />
                </StackPanel>
            </Grid>
            <Grid Style="{StaticResource ContentRoot}">
                <ScrollViewer>
                    <content:ContentExternalEditor />
                </ScrollViewer>
            </Grid>
        </DockPanel>
    </Grid>
    
</UserControl>
